home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power Programmierung
/
Power-Programmierung (Tewi)(1994).iso
/
magazine
/
drdobbs
/
1991
/
05
/
d_flat
/
menus.c
< prev
next >
Wrap
Text File
|
1991-02-18
|
3KB
|
91 lines
/* -------------- menus.c ------------- */
#include <stdio.h>
#include "dflat.h"
DEFMENU(SystemMenu)
POPDOWN("System Menu", NULL)
SELECTION("~Restore", ID_SYSRESTORE, 0, 0 )
SELECTION("~Move", ID_SYSMOVE, 0, 0 )
SELECTION("~Size", ID_SYSSIZE, 0, 0 )
SELECTION("Mi~nimize", ID_SYSMINIMIZE, 0, 0 )
SELECTION("Ma~ximize", ID_SYSMAXIMIZE, 0, 0 )
SEPARATOR
SELECTION("~Close", ID_SYSCLOSE, ALT_F4, 0 )
ENDPOPDOWN
ENDMENU
DEFMENU(MainMenu)
POPDOWN( "~File", NULL )
SELECTION( "~New", ID_NEW, 0, 0 )
SELECTION( "~Open...", ID_OPEN, 0, 0 )
SEPARATOR
SELECTION( "~Save", ID_SAVE, ALT_S, 0 )
SELECTION( "Save ~as...", ID_SAVEAS, 0, 0 )
SEPARATOR
SELECTION( "~Print", ID_PRINT, 0, 0 )
SEPARATOR
SELECTION( "E~xit", ID_EXIT, ALT_X, 0 )
ENDPOPDOWN
POPDOWN( "~Edit", PrepEditMenu )
SELECTION( "~Undo", ID_UNDO, ALT_BS, INACTIVE )
SEPARATOR
SELECTION( "Cu~t", ID_CUT, SHIFT_DEL, INACTIVE )
SELECTION( "~Copy", ID_COPY, CTRL_INS, INACTIVE )
SELECTION( "~Paste", ID_PASTE, SHIFT_INS, INACTIVE )
SEPARATOR
SELECTION( "Cl~ear", ID_CLEAR, 0, INACTIVE )
SELECTION( "~Delete", ID_DELETETEXT, DEL, INACTIVE )
SEPARATOR
SELECTION( "Pa~ragraph", ID_PARAGRAPH, ALT_P, INACTIVE )
ENDPOPDOWN
POPDOWN( "~View", NULL )
SELECTION( "~Normal", ID_NORMAL, 0, CHECKED )
SELECTION( "S~orted by...", ID_SORTEDBY, 0, 0 )
SEPARATOR
SELECTION( "~Search", ID_SEARCH, 0, 0 )
ENDPOPDOWN
POPDOWN( "~Options", PrepOptionsMenu )
SELECTION( "~Insert", ID_INSERT, INS, TOGGLE)
SELECTION( "~Word wrap", ID_WRAP, 0, TOGGLE)
SELECTION( "~Tabs ", ID_TABS, 0, 0 )
SEPARATOR
SELECTION( "~Color", ID_COLOR, 0, 0)
SELECTION( "~Monochrome", ID_MONO, 0, 0)
SEPARATOR
SELECTION( "~Save Options", ID_SAVEOPTIONS, 0, 0 )
ENDPOPDOWN
POPDOWN( "~Window", PrepWindowMenu )
SELECTION( NULL, ID_WINDOW, 0, 0 )
SELECTION( NULL, ID_WINDOW, 0, 0 )
SELECTION( NULL, ID_WINDOW, 0, 0 )
SELECTION( NULL, ID_WINDOW, 0, 0 )
SELECTION( NULL, ID_WINDOW, 0, 0 )
SELECTION( NULL, ID_WINDOW, 0, 0 )
SELECTION( NULL, ID_WINDOW, 0, 0 )
SELECTION( NULL, ID_WINDOW, 0, 0 )
SELECTION( NULL, ID_WINDOW, 0, 0 )
SELECTION( NULL, 0, 0, 0 )
SELECTION( NULL, 0, 0, 0 )
SELECTION( NULL, 0, 0, 0 )
SEPARATOR
SELECTION( "~Close all", ID_CLOSEALL, 0, 0)
ENDPOPDOWN
POPDOWN( "~Help", NULL )
SELECTION( "~Help for help...", ID_HELPHELP, 0, 0 )
SELECTION( "~Extended help...", ID_EXTHELP, 0, 0 )
SELECTION( "~Keys help...", ID_KEYSHELP, 0, 0 )
SELECTION( "Help ~index...", ID_HELPINDEX, 0, 0 )
SEPARATOR
SELECTION( "~About...", ID_ABOUT, 0, 0 )
ENDPOPDOWN
ENDMENU